@import url('https://fonts.googleapis.com/css2?family=Baloo+Bhai+2:wght@400..800&family=Martel+Sans:wght@200;300;400;600;700;800;900&family=Pompiere&family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');

/* This section applies to the whole webpage  */
* {
    margin: 0;
    padding: 0;
    font-family: 'Roboto';
    color: white;
}

/* Body started */
body {
    background-color: rgb(220, 220, 156);
}

/* Body dead end  */
/* whole page container starts here  */
.container {
    width: 100vw;
    height: 100vh;
}

/* whole page container dead end  */
/* This section is for the header only */
.header {
    background-color: #000;
    height: 55px;
    justify-content: space-between;
}

.inHeader {
    padding: 0px 25px;
    transform: translateY(6%);
}

.inHeader-1 button {
    background-color: #000000;
}

.inHeader-2 {
    gap: 5px;
}

#b-home {
    background-color: #1f1f1f;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    transition: transform 50ms ease-in;
}

#b-home:hover {
    background-color: #323232;
    transform: scale(1.02, 1.02);
}

#b-home:active {
    transform: scale(0.90);
    background-color: #151515;
}

.homeImg {
    width: 25px;
}

.search-bar {
    border-radius: 25px;
    width: clamp(420px, 30vw, 1000px);
    height: 50px;
    background-color: #1f1f1f;
    justify-content: space-between;
}

.search-bar> :nth-child(1) {
    background-color: #1f1f1f;
    width: 50px;
    height: 50px;
    border-radius: 40px;
}

.search-bar> :nth-child(1)>img {
    filter: invert(0.6);
}

.search-bar> :nth-child(1)>img:hover {
    filter: invert(1);
}

.search-bar> :nth-child(3) {
    background-color: #1f1f1f;
    width: 50px;
    height: 50px;
    border-radius: 40px;
}

.search-bar> :nth-child(3)>img {
    filter: invert(0.6);
}

.search-bar> :nth-child(3)>img:hover {
    filter: invert(1);
}

/* .search-bar:active {
    outline-offset: 2px;
} */

.search-bar-elements {
    margin: 0px 0px;
}

#searchInput {
    cursor: blink;
    width: 75%;
    background-color: #1f1f1f;
}

#searchInput::placeholder {
    color: rgb(201, 201, 201);
    font-size: medium;
}

#searchInput:focus {
    outline: none;
}

.inHeader-3 {
    gap: 15px;
}

.inHeader-3> :nth-child(1) {
    background-color: #000;
    border-radius: 20px;
    color: gray;
    font-weight: 800;
}

.inHeader-3> :nth-child(1):hover {
    color: white;
    transform: scale(1.02);
}

.inHeader-3> :nth-child(2) {
    color: gray;
    background-color: #000;
    font-weight: 800;
}

.inHeader-3> :nth-child(2):hover {
    color: white;
    transform: scale(1.02);
}

.inHeader-3> :nth-child(3) {
    background-color: #000000;
    color: gray;
    font-weight: 800;
}

.inHeader-3> :nth-child(3):hover {
    color: white;
    transform: scale(1.02);
}

.inHeader-3> :nth-child(3)>img:hover {
    filter: invert(1);
}

.inHeader-3> :nth-child(4) {
    width: 1px;
    height: 30px;
    background-color: gray;
    margin: 0px 10px;
}

.inHeader-3> :nth-child(5) {
    height: 50px;
    width: 100px;
    border-radius: 40px;
    background-color: #000;
    color: gray;
    gap: 5px;
    font-weight: 800;
}

.inHeader-3> :nth-child(5):hover {
    color: white;
    transform: scale(1.02);
}

.inHeader-3> :nth-child(5)>img {
    width: 35px;
    border-radius: 40px;
    /* make image glow via js  */
}

.inHeader-3> :nth-child(6) {
    background-color: #000000;
    color: gray;
    font-weight: 800;
}

.inHeader-3> :nth-child(6):hover {
    color: white;
    transform: scale(1.02);
}

.inHeader-3> :nth-child(7) {
    color: black;
    font-weight: 800;
    width: 100px;
    height: 50px;
    border-radius: 40px;
    font-weight: 800;
    font-size: 1em;
    transition: transform 100ms ease-in;
}

.inHeader-3> :nth-child(7):hover {
    transform: scale(1.02);
}
.inHeader-3> :nth-child(7):active {
    transform: scale(0.90);
}

/* Header section dead end */

/* main section starts here (contains left and center)  */
main {
    width: 100%;
    height: calc(100% - 145px);
    background-color: #000000;
    gap: 8px;
}

/* main section dead end (contains left and center)  */

/* Left section starts here */
.left {
    overflow-y: scroll;
    width: calc(22% - 10px);
    height: calc(100% - 15px);
    background-color: #121212;

    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    border-radius: 6px;
}

.left> :nth-child(1) {
    width: 90%;
    justify-content: space-between;
    padding: 20px 15px;
    font-weight: 800;
}

.left> :nth-child(1)>h2 {
    cursor: context-menu;
    font-size: 16px;
}

.left> :nth-child(1)>button {
    padding: 8px 8px;
    background-color: transparent;
    border-radius: 35px;
    transition: transform 100ms ease-in;
}
.left> :nth-child(1)>button:active {
    transform: scale(0.90);
    transform: rotate(90deg);
}

.left> :nth-child(1)>button:hover {
    background-color: #252525;
}

.left> :nth-child(1)>button>img {
    width: 15px;
    filter: invert(0.6);
}

.left> :nth-child(1)>button>img:hover {
    filter: invert(1);
}

.librarySongs {
    flex: 1;
    width: 100%;
    flex-direction: column;
    
}

.songDetails {
    width: 95%;
    height: 60px;
    margin: 5px 5px 0px 5px;

    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
}
.songDetails > div {
    width: 90%;
    height: 90%;
    display: flex;
    justify-content: center;
    align-items: center;
}
.songDetails > .randomSongImage {
    width: 50px;
    height: 50px;
    border-radius: 10px;
}
.randomSongImage img {
    object-fit: contain;
}
.songDetails > .details {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.details div {
    width: fit-content;
    height: fit-content;
    font-size: 12px;
}
.details > :nth-child(1) {
    font-size: 14px;
}

.left::-webkit-scrollbar {
    width: 10px;
}

.left::-webkit-scrollbar-track {
    background: none;
}

.left::-webkit-scrollbar-thumb {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid #222;
}

.left:hover::-webkit-scrollbar-thumb {
    background-color: rgba(255, 255, 255, 0.3);
    opacity: 1;
}

.left::-webkit-scrollbar-thumb:hover {
    background-color: rgba(191, 191, 191, 0.6);
}

.left-footer {
    gap: 10px;
    width: 80%;
    height: fit-content;
    flex-wrap: wrap;

}

.left-footer a {
    text-decoration: none;
}

.left-footer a span {
    color: rgb(163, 163, 163);
    font-size: 11px;
}

.left> :nth-child(3) {
    flex-direction: column;
    gap: 10px;
    margin: 0px 0px 20px 20px;
}

.left> :nth-child(3)> :nth-child(2) {
    text-decoration: none;
    font-size: 12px;
}

.left> :nth-child(3)> :nth-child(2):hover {
    text-decoration: underline;
}

.left> :nth-child(3)> :nth-child(3) {
    margin-top: 20px;
    font-weight: 800;
    padding: 5px 10px;
    gap: 10px;
    border: 1px solid #575757;
    border-radius: 20px;
    transition: transform 100ms ease-in;
}

.left> :nth-child(3)> :nth-child(3):hover {
    border: 1px solid white;
    transform: scale(1.04);
}
.left> :nth-child(3)> :nth-child(3):active {
    transform: scale(0.90);
}

.left> :nth-child(3)> :nth-child(3)>img {
    filter: invert(1);
}


/* Left section dead end */

/* Middle section starts here */
.center {
    overflow-x: hidden;
    width: calc(78% - 10px);
    height: calc(100% - 15px);
    background: linear-gradient(to bottom, #323232 10px, #171717 60%, #121212 100%);

    border-radius: 6px;
    overflow-y: scroll;
}

.center::-webkit-scrollbar {
    width: 10px;
}

.center::-webkit-scrollbar-track {
    background: none;
}

.center::-webkit-scrollbar-thumb {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid #222;
}

.center:hover::-webkit-scrollbar-thumb {
    background-color: rgba(255, 255, 255, 0.3);
    opacity: 1;
}

.center::-webkit-scrollbar-thumb:hover {
    background-color: rgba(191, 191, 191, 0.6);
}



.spotifyPlaylist {
    padding: 20px 20px;
}

.cardContainer {
    gap: 10px;
    overflow-x: hidden;
}

.hoverGlow {
    display: flex;
    cursor: pointer;
    justify-content: center;
    align-items: center;
    padding: 15px;
    background-color: transparent;
    border-radius: 10px;
}
.hoverGlow:hover {
    background-color: #57575759;
}

.play { /* div */
    cursor: pointer;
    z-index: 10;
    position: absolute;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0px 10px;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    background-color: #1ed760;
    opacity: 0;
    transition: all 300ms cubic-bezier(0, 0, 0.19, 1.11);
}
.play button {
    width: fit-content;
    height: fit-content;
    display: flex;
    justify-content: center;
    align-items: center;
    background: transparent;
    border: none;
}
.play:hover {
    transform: scale(1.04);
    background-color: #3be477 ;
}
.play:active {
    transform: scale(0.95);
}
.play img {
    cursor: pointer;
    width: 20px;
}

.cards {
    position: relative;
    display: flex;
    width: 180px;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
}
.cards p {
    line-height: 20px;
    font-size: 12px;
    color: #9c9c9c;
    font-weight: 700;
    width: 85%;
    height: 40px;
    overflow: hidden;
    text-overflow: ellipsis;
}
.cards > div {
    display: flex;
    justify-content: flex-end;
    align-items: flex-end;
    /* background-image: ; */
    background-repeat: no-repeat;
    background-size: contain;
    width: 180px;
    height: 180px;
    border-radius: 10px;
}


.center-footer {
    padding: 0px 20px 20px 20px;
    flex-direction: column;
    gap: 20px;
}

.center-footer> :nth-child(1)> :nth-child(1) {
    width: 100%;
    height: 1px;
    background-color: #323232;
}

#center-footer-links {
    justify-content: space-between;
}

#center-footer-links> :nth-child(1) {
    gap: clamp(40px,5vw,200px);
}

#center-footer-links> :nth-child(1)>div {
    flex-direction: column;
    gap: 5px;
}

#center-footer-links> :nth-child(1)>div h4 {
    font-size: 16px;
}

#center-footer-links> :nth-child(1)>div>a {
    text-decoration: none;
    font-weight: 500;
    color: #a3a3a3;
}

#center-footer-links> :nth-child(1)>div>a:hover {
    text-decoration: underline;
    color: white;
}

#center-footer-links> :nth-child(2) {
    cursor: context-menu;
    flex: 1;
    justify-content: flex-end;
    align-items: flex-start;
    height: 100%;
}

#center-footer-links> :nth-child(2) a {
    cursor: context-menu;
}

#center-footer-links> :nth-child(2)>div {
    gap: 10px;
}

#center-footer-links> :nth-child(2) img {
    width: 20px;
}

#center-footer-links> :nth-child(2)>div div {

    width: fit-content;
    height: fit-content;
    padding: 12px;
    background-color: #313131;
    border-radius: 50%;
}

#center-footer-links> :nth-child(2)>div div:hover {
    background-color: #171717;
}

.center-footer> :nth-child(3)> :nth-child(1) {
    width: 100%;
    height: 1px;
    background-color: #323232;
}

.center-footer> :nth-child(4) {
    color: rgb(155, 155, 155);
    font-size: 12px;
    font-weight: 800;
    cursor: blink;
}

/* Middle section dead end */


/* Player section starts here */
.player {
    position: fixed;
    background-color: #000000;
    width: 100vw;
    height: 90px;
    bottom: 0px;
    justify-content: space-between;
}

.divs-in-player {
    padding: 0px 15px;
}

.player> :nth-child(2) {
    flex-direction: column;
}

.player> :nth-child(2)> :nth-child(1) {
    gap: 20px;
}

.player> :nth-child(2)> :nth-child(1)> :nth-child(3) {
    padding: 10px;
    border-radius: 50%;
    transition: transform 100ms ease-in;
}
.player> :nth-child(2)> :nth-child(1)> :nth-child(3):active {
    transform: scale(0.88);
}

.player> :nth-child(3) {
    gap: 15px;
}

#songTiming {
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
    width: 700px;
    outline: none;
}

#songTiming:hover::-webkit-slider-thumb {
    visibility: visible;
}

#songTiming::-webkit-slider-runnable-track {
    height: 4px;
    background: gray;
    border-radius: 5px;
}

#songTiming::-webkit-slider-thumb {
    visibility: hidden;
    margin-top: -5px;
    -webkit-appearance: none;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: white;
}

#volume {
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
    width: 100px;
    outline: none;
}

#volume:hover::-webkit-slider-thumb {
    visibility: visible;
}

#volume::-webkit-slider-runnable-track {
    height: 4px;
    background: gray;
    border-radius: 5px;
}

#volume::-webkit-slider-thumb {
    -webkit-appearance: none;
    visibility: hidden;
    margin-top: -5px;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: white;
}

/* Player section dead end */